import pygame
import sys


def draw_lines(points_dict):
    pygame.init()
    winx = 300
    winy = 300
    screen = pygame.display.set_mode((winx, winy))
    fclock = pygame.time.Clock()
    while True:
        # screen.fill((255,255,255))
        for e in pygame.event.get():
            if e.type == pygame.QUIT:
                pygame.quit()
                sys.exit()
        for k, v in points_dict.items():
            print(k,v)
            pygame.draw.aaline(screen, (0, 255, 255),
                               (k, v), (k, winy))
        pygame.display.update()


if __name__ == '__main__':
    # points_dict = {10: 10, 15: 15, 20: 20,25:10}
    points_dict = {}
    for i in range(300,-1,-1):
        points_dict[i*3]=i**1.6
    print(points_dict)
    draw_lines(points_dict)
